#手指抽筋模拟器pygame版.py
import pygame
import sys

pygame.init()
window = pygame.display.set_mode((500,500))
textFont = pygame.font.Font(None,30)
num = 0

def hello():
	textSurface = textFont.render("%d"%(num),True,(255,255,255))
	window.blit(textSurface,(200,200))

while True:
	window.fill((0,0,0))
	for event in pygame.event.get():
		if event.type == pygame.QUIT:
			sys.exit()
		elif event.type == pygame.MOUSEBUTTONUP:
			num += 1
	hello()
	pygame.display.update()
pygame.quit()